package com.tomcov.client.activities;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.tomcov.client.ClientFactory;
import com.tomcov.client.view.I18nView;

public class I18nActivity extends AbstractActivity implements I18nView.Presenter{

	private ClientFactory clientFactory;

	
	public I18nActivity(ClientFactory clientFactory){
        this.clientFactory = clientFactory;	
	}
	
	@Override
	public void start(AcceptsOneWidget panel, EventBus eventBus) {
		I18nView I18nView = clientFactory.getI18nView();
		I18nView.setPresenter(this);
        panel.setWidget(I18nView.asWidget());

		
	}

	@Override
	public void goTo(Place place) {
		clientFactory.getPlaceController().goTo(place);		
	}

}
